const router = require('koa-router')(),
  login=require('../models/commentlike.js'),
  {con}=require('mysql2/promise'),
  log=console.log;

router.prefix('/login')

router.get('/commentlike', async function (ctx, next) {
    const {id} = (ctx.query);
    await login.commentLike(id);
    ctx.body="成功";
})  

module.exports = router;